import time

def timestamp():
    return str(int(time.time()))

def response(code,info,data):
    return {"code":code,"info":info,"data":data}

def verifytoken(token):
    return ((int(timestamp()) -int(token.split('#')[0])) <= 86400)

def getdate(time_obj):
    time_obj = int(time_obj) 
    return time.strftime('%Y-%m-%d %H-%M-%S',time.localtime(time_obj))